<template>
  <el-dialog title="单位信息" ref="tableDialog" :visible="dialogVisible" width="80%" v-if="dialogVisible" @close="close">

    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="申请信息" name="first">
        <tabs-apply></tabs-apply>
      </el-tab-pane>
      <el-tab-pane label="单位信息" name="second">
        <cars ></cars>
      </el-tab-pane>
    </el-tabs>

  </el-dialog>
</template>

<script>
import TabsApply from "./tabsApply";
import Cars from "./cars";
export default {
  components: { TabsApply,Cars },
  props: {
    dialogVisible: {
      type: Boolean,
      default: true
    }
  },
  data: function() {
    return {
      activeName: 'first'
    };
  },
  computed: {

  },
  created() {
    this.fetchData();
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    fetchData() {

    },
    resetForm() {
      this.$refs.form.resetFields();
    },
    save() {

    },
    close() {
      this.$emit("update:dialogVisible", false);
    }
  }
};
</script>

<style lang="scss" scoped>
.s_title {
  background: #f6f6f6;
  height: 40px;
  line-height: 40px;
  padding-left: 10px;
  margin-top: 0;
}
</style>